package com.example.demo.util;

import java.util.Comparator;
import java.util.Map;

/**
 * Created by wengjunjie on 2018/4/2.
 */
public class MapValueComparator implements Comparator<Map.Entry<String, Integer>> {
    @Override
    public int compare(Map.Entry<String, Integer> me1, Map.Entry<String, Integer> me2) {
        return me1.getValue().compareTo(me2.getValue());
    }
}
